package jamirr;

import java.util.Map;

final class AnnotationMirrorImpl extends AnnotatedElementImpl implements AnnotationMirror {

    private final String name;
    private final Map<String, AnnotationAttribute<?>> attributes;

    public AnnotationMirrorImpl(String name,
                                Map<String, AnnotationAttribute<?>> attributes,
                                AnnotationMirror[] declaredAnnotations) {
        super(declaredAnnotations);
        this.name = name;
        this.attributes = attributes;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public Map<String, AnnotationAttribute<?>> getAttributes() {
        return attributes;
    }
}
